/*
 * @LastEditors: hyduan
 * @Date: 2021-06-28 12:27:42
 * @LastEditTime:
 */
const common = {
    state: {
        isCollapse: false,
        tagCurrent: [],
        screen: -1,
        showTag: false,
        showCollapse: true,
        showMenu: true,
        theme: '#409EFF',
        themeName: '',
    },
    actions: {},
    mutations: {
        SET_COLLAPSE: state => {
            state.isCollapse = !state.isCollapse
        },
        SET_TAGCURRENT: (state, active) => {
            state.tagCurrent = active
        },
        SET_SHOWCOLLAPSE: (state, active) => {
            state.showCollapse = active
        },
        SET_SHOWTAG: (state, active) => {
            state.showTag = active
        },
        SET_SHOWMENU: (state, active) => {
            state.showMenu = active
        },
        SET_SCREEN: (state, screen) => {
            state.screen = screen
        },
        SET_THEME: (state, color) => {
            state.theme = color
        },
        SET_THEME_NAME: (state, themeName) => {
            state.themeName = themeName
        }
    }
}
export default common
